package org.jeecg.modules.earlywarning.rules.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: 预警规则
 * @Author: jeecg-boot
 * @Date:   2021-11-30
 * @Version: V1.0
 */
@Data
@TableName("ew_rules")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="ew_rules对象", description="预警规则")
public class EwRules implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private java.lang.String id;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private java.lang.String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private java.util.Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private java.lang.String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private java.util.Date updateTime;
	/**所属部门*/
    @ApiModelProperty(value = "所属部门")
    private java.lang.String sysOrgCode;
	/**所属能源*/
	@Excel(name = "所属能源", width = 15, dictTable = "td_energy_types", dicText = "energy_name", dicCode = "id")
	@Dict(dictTable = "td_energy_types", dicText = "energy_name", dicCode = "id")
    @ApiModelProperty(value = "所属能源")
    private java.lang.String energyTypesId;
	/**预警类型*/
	@Excel(name = "预警类型", width = 15, dictTable = "ew_warningtype", dicText = "ew_type", dicCode = "id")
	@Dict(dictTable = "ew_warningtype", dicText = "ew_type", dicCode = "id")
    @ApiModelProperty(value = "预警类型")
    private java.lang.String warningtypeId;
	/**设备选择*/
	@Excel(name = "设备选择", width = 15)
    @ApiModelProperty(value = "设备选择")
    private java.lang.String equipmentId;
    /**设备类型*/
    @ApiModelProperty(value = "设备类型")
    private java.lang.String equipmentType;
    /**设备编号*/
    @ApiModelProperty(value = "设备编号")
    private java.lang.String dmCode;
	/**预警名称*/
	@Excel(name = "预警名称", width = 15)
    @ApiModelProperty(value = "预警名称")
    private java.lang.String ewName;
	/**预警规则（预警阀值）*/
	@Excel(name = "预警规则（预警阀值）", width = 15)
    @ApiModelProperty(value = "预警规则（预警阀值）")
    private java.lang.String ewValue;
	/**预警规则（预警阀值单位）*/
	@Excel(name = "预警规则（预警阀值单位）", width = 15)
    @ApiModelProperty(value = "预警规则（预警阀值单位）")
    private java.lang.String unit;
	/**启动状态*/
	@Excel(name = "启动状态", width = 15)
    @ApiModelProperty(value = "启动状态")
    private java.lang.String startupStatus;
	/**0表示未删除,1表示删除*/
	@Excel(name = "0表示未删除,1表示删除", width = 15)
    @ApiModelProperty(value = "0表示未删除,1表示删除")
    private java.lang.String delFlag;
	/**部门id（部门表：sys_depart）*/
	@Excel(name = "部门id（部门表：sys_depart）", width = 15)
    @ApiModelProperty(value = "部门id（部门表：sys_depart）")
    private java.lang.String departId;
	/**租户ID（租户表：sys_tenant）*/
	@Excel(name = "租户ID（租户表：sys_tenant）", width = 15)
    @ApiModelProperty(value = "租户ID（租户表：sys_tenant）")
    private java.lang.String tenantId;
	/**备用字段*/
	@Excel(name = "备用字段", width = 15)
    @ApiModelProperty(value = "备用字段")
    private java.lang.String theStandby1;
	/**备用字段*/
	@Excel(name = "备用字段", width = 15)
    @ApiModelProperty(value = "备用字段")
    private java.lang.String theStandby2;
	/**备用字段*/
	@Excel(name = "备用字段", width = 15)
    @ApiModelProperty(value = "备用字段")
    private java.lang.String theStandby3;
}
